package com.company;

public class L_Person1 {
    private String name;
    private int age;    //年龄
    private String sex;    //性别
    private String birthday;    //出生日期
    private String constellation;    //星座
    public L_Person1(String name,int age,String sex,String birthday,String constellation)
    {
        this.name=name;
        this.age=age;
        this.sex=sex;
        this.birthday=birthday;
        this.constellation=constellation;
    }
    public String intro()
    {
        return"姓名："+name+"\n年龄："+age+"\n性别："+sex+"\n出生日期："+birthday+"\n星痤："+constellation;
    }

    public static void main(String[] args)
    {
        L_Person1 person=new L_Person1("王洁",21,"女","2016-02-21","獅子座");
        String intro=person.intro();
        System.out.println(intro);
    }
}
